package old.builder.demo1;

public class Worker extends Builder {
    private Product product;

    public Worker() {
        product = new Product();
    }

    @Override
    void buildA() {
        product.setBuildA("打地基");
        System.out.println("--打地基--");
    }

    @Override
    void buildB() {
        product.setBuildB("钢筋工程");
        System.out.println("--钢筋工程--");
    }

    @Override
    void buildC() {
        product.setBuildC("电线工程");
        System.out.println("--电线工程--");
    }

    @Override
    void buildD() {
        product.setBuildD("粉刷");
        System.out.println("--粉刷--");
    }

    @Override
    Product getBuild() {
        return product;
    }


}
